package com.roy.springboot.security.oauth2.repositories;

import com.roy.springboot.security.oauth2.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;

/**
 * Created by elloxxn on 12/14/2017.
 */
@Component
public interface UserRepository extends JpaRepository<User, Long> {
    User findByUsername(String username);
}
